<?php

/*
 * To change this template, choose Tools | Templates
* and open the template in the editor.
*/
require 'connection.php';

try{
	$con = connect();

	$notificationId = $_POST['notificationId'];

	if($notificationId != NULL){
			
		$sql = "DELETE FROM notificacion WHERE idnotificacion = ?";
		$stmDelNotificacion = $con->prepare($sql);
		$stmDelNotificacion->bind_param("i",$notificationId);
		$stmDelNotificacion->execute();
		$stmDelNotificacion->close();
			
		echo 'successful';
	}else{
		echo 'error';
	}

	mysqli_close($con);
}catch (Exception $e){
	echo $e->getMessage();
}


?>
